<script>
export default {
  props: {
    list: {
      type: Array,
    },
  },
  watch: {
    list: {
      handler() {
        console.log(`列表组件接受到的数据${this.list}`);
      },
    },
  },

  render(h) {
    return (
      <div>
        <ul>
          {this.list.map((item) => (
            <li>测试{item}</li>
          ))}
        </ul>
      </div>
    );
  },
};
</script>